package com.core.family.biz.yizhao.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author hl
 * @version 1.0.0
 * @ClassName YzSetting.java
 * @Description 类描述
 * @createTime 2023年06月28日 18:55:00
 */
@TableName("yz_setting")
@Data
public class YzSetting {

    @TableId
    private String id;

    @TableField(value = "wokerRemarkTypes",typeHandler = JacksonTypeHandler.class)
    private List<BeanRemark> wokerRemarkTypes; //师傅评价类型
    @TableField(value = "userRemarkTypes",typeHandler = JacksonTypeHandler.class)
    private List<BeanRemark> userRemarkTypes;// 用户评价类型
    @TableField(value = "timeLimitTypes",typeHandler = JacksonTypeHandler.class)
    private List<BeanCom> timeLimitTypes;// 时间限制类型
    @TableField(value = "roleTypes",typeHandler = JacksonTypeHandler.class)
    private List<BeanCom> roleTypes;// 身份类型
    @TableField(value = "skillTypes",typeHandler = JacksonTypeHandler.class)
    private List<BeanCom> skillTypes;//技能类型
    @TableField(value = "approveTypes",typeHandler = JacksonTypeHandler.class)
    private List<BeanCom> approveTypes;//体现审批
    @TableField(value = "quotationTypes",typeHandler = JacksonTypeHandler.class)
    private List<BeanCom> quotationTypes;//报价打听
    @TableField(value = "quotationStatusTypes",typeHandler = JacksonTypeHandler.class)
    private List<BeanCom> quotationStatusTypes;//报价状态
    @TableField(value = "kickbackTypes",typeHandler = JacksonTypeHandler.class)
    private List<BeanCom> kickbackTypes;//佣金折扣
    @TableField(value = "marginTypes",typeHandler = JacksonTypeHandler.class)
    private List<BeanCom> marginTypes;//保证金
    @TableField(value = "fileManagement",typeHandler = JacksonTypeHandler.class)
    private List<BeanCom> fileManagement;//文件管理
    @TableField(value = "pictureNote",typeHandler = JacksonTypeHandler.class)
    private List<BeanCom> pictureNote;//图片说明
    @TableField(value = "colorList",typeHandler = JacksonTypeHandler.class)
    private List<BeanCom> colorList;//颜色图片
    @TableField(value = "other",typeHandler = JacksonTypeHandler.class)
    private Map<String, List<BeanCom>> other;//其他


    @Data
    public static class BeanCom {
        private String name;
        private String value;
        private String note;

        private List<String> extendList;
    }

    @Data
    public static class BeanRemark {
        private String type;
        private List<String> list;
    }


}
